<div style="height: 30px;"></div>
<div class = "menu" style="position: fixed; top: 5px;">
    <div class="m2">
	<a href="/chars.php" class="btn btn-info"><span class="glyphicon glyphicon-user"> </span> Список чаров </a> &nbsp;
	<a href="/dailyreport.php" class="btn btn-info"><span class="glyphicon glyphicon-calendar"> </span> Дневные отчеты </a> &nbsp;
	<a data-toggle="modal" data-target="#modal_generate" href="/modal-generate-chars.php" class="btn btn-info">  <span class="glyphicon glyphicon-plus"></span> Сгенерировать чаров </a> &nbsp;
	<a href="/wh.php" class="btn btn-info"><span class="glyphicon glyphicon-usd"> </span> Бабло на складах </a> &nbsp;
	<a href="/log.php" class="btn btn-info">  <span class="glyphicon glyphicon-time"></span> Лог склада </a> &nbsp;
    <a href="/action-log.php" class="btn btn-info">  <span class="glyphicon glyphicon-ok"></span> Лог событий </a> &nbsp;
   <?php  if($_SESSION['loggedIn'] != true) { ?>
	<a data-toggle="modal" data-target="#modal_login"  href="/login.php" class="btn btn-info">  <span class="glyphicon glyphicon-log-in"></span> Войти</a> &nbsp;
	</div>
    <?php  } 
    else {?>
        <a   href="/logout.php" class="btn btn-info">  <span class="glyphicon glyphicon-log-out"></span> Выйти</a> &nbsp;
    </div>
    <?php }?>
</div>


<!-- <div style="width: 100px; height: 50px; padding: 7px; position: fixed; background-color: lightgreen; z-index: 999; right: 0px; top: 0px; border: 3px solid yellow;">
    
<?=$_SESSION['login'] ?>

</div> -->


<!--Модальное для генерации чаров -->
<div class="modal fade" id="modal_generate" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="padding: 10px;">

          <!--  <div class="modal-body">
                ...
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="button" class="btn btn-primary">Save changes</button>
            </div>-->
        </div>
    </div>
</div>

<!--Модальное для логина -->
<div class="modal fade" id="modal_login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="padding: 3px;">

        </div>
    </div>
</div>